package com.example.swimmingpool.entity.base;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
public class BaseModel {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    @TableLogic
    @TableField(value = "delete_flag", fill = FieldFill.INSERT_UPDATE)
    private Integer deleteFlag;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
